<div class="main">
  <div class="grid-item" *ngFor="let row of rows">
    <div class="form-group">
      <div class="margin-bottom-15">
        <span class="green-span">&nbsp;</span>{{row.name}}
      </div>
      <div>

        <div class="payment-method">
          <div class="grid-header">
            <div class="grid-title" *ngFor="let column of columns">{{column.title}}</div>
          </div>
          <div class="grid-container" id="form{{row.name}}">
            <div class="grid-item" *ngFor="let item of row.items">
              <div class="grid-itemInfo hidden" id="itemID{{item.id}}">{{item.id}}</div>
              <div class="grid-itemInfo" id="itemName{{item.id}}">{{item.name}}</div>
              <div class="grid-itemInfo">
                <input type="text" class="form-control" style="width: auto;" id="itemDisplayIndex{{item.id}}" value="{{item.displayIndex}}">
              </div>
              <div class="grid-itemInfo">
                <input type="radio" *ngIf="item.isDefault == 0" name="rad{{row.name}}" id="itemIsDefault{{item.id}}">
                <input type="radio" *ngIf="item.isDefault == 1" checked name="rad{{row.name}}" id="itemIsDefault{{item.id}}">
              </div>
              <div class="grid-itemInfo">
                <button class="action-btn btn-invalid" *ngIf="item.isActive == '0'" value="{{item.isActive}}" id="itemIsActive{{item.id}}" [disabled]="item.flag==0" (click)="IsEnable(row.name, item.id, item.isActive)">目前禁用</button>
                <button class="action-btn" *ngIf="item.isActive == '1'" value="{{item.isActive}}" id="itemIsActive{{item.id}}" [disabled]="item.flag==0" (click)="IsEnable(row.name, item.id, item.isActive)">目前启用</button>
              </div>
              <div class="grid-itemInfo hide" id="itemFlag{{item.id}}">{{item.flag}}</div>
            </div>
          </div>
        </div>
        <div class="row payment-method-sub-btn">
          <button type="submit" class="confirm-btn" (click)="EditPayment(row.name)">确认</button>
        </div>
      </div>
    </div>
  </div>
</div>